package com.woniu.user.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.user.model.Coach;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.user.service.dto.CoachInfoDto;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 教练特有信息表 Mapper 接口
 * </p>
 *
 * @author Silas
 * @since 2023-02-15
 */
public interface CoachDao extends BaseMapper<Coach> {


    List<CoachInfoDto> query(String condition);

    // 查询所有可用教练
    IPage<CoachInfoDto> list(Page<Coach> pageInfo);
}
